//
//  MLNetworkTools.m
//  keJiNews
//
//  Created by 魔龙 on 16/4/27.
//  Copyright © 2016年 魔龙. All rights reserved.
//

#import "MLNetworkTools.h"

@implementation MLNetworkTools
+ (instancetype)sharedManager {
    static dispatch_once_t onceToken;
    static MLNetworkTools *instance;
    dispatch_once(&onceToken, ^{
        instance = [[self alloc]initWithBaseURL:MLBaseURL sessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
        instance.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", @"text/html",nil];
    });
    return instance;
}

@end
